package com.stone.framework.message.user;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

import io.swagger.annotations.ApiModelProperty;

public class DeptReqBody {

    @ApiModelProperty(value = "主键，新增时不使用")
    private Long id;

    @ApiModelProperty(value = "代码", required = true)
    @NotBlank(message = "[code] {title.notBlank}")
    private String code;

    @ApiModelProperty(value = "名称", required = true)
    @NotBlank(message = "[name] {title.notBlank}")
    private String name;

    @ApiModelProperty(value = "描述", required = true)
    @NotBlank(message = "[desc] {title.notBlank}")
    private String desc;

    @ApiModelProperty(value = "上级部门", required = true)
    @NotNull(message = "[parentId] {title.notNull}")
    private Long parentId;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

}
